<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>隐藏</title>
  <style>
    div{width: 200px;height: 200px;}
    .c1{background-color: chartreuse;}
    /* visibility 可见的,hidden,隐藏 和display:none,虽然看不到了,
    位置还存在着,visible可访问的,可以看到的,能看到,或者看不到,能够保留位置
     */
    .c2{background-color:cyan;visibility:visible;}
    .c3{background-color: red;}
  </style>
</head>
<body>
  <div class="c1">我是div1</div>
  <div class="c2">我是div2</div>
  <div class="c3">我是div3</div>
</body>
</html>